from django.db import models
# 用户名，密码，手机号，地址，邮箱
# Create your models here.

class User(models.Model):
    username = models.CharField('用户名',max_length=24)
    password = models.CharField('密码',max_length=78)
    phone = models.CharField('电话',max_length=11)
    address = models.CharField('地址',max_length=120)
    email = models.EmailField('邮箱')
    level = models.SmallIntegerField(default=1) #1未激活2已激活3拉黑

    class Meta:
        db_table = 'users'
        verbose_name = '用户表'
        verbose_name_plural = verbose_name